<template>
  <div>
    
    <div>
      <a href="javascript:;" @click="skip('/index')">首页</a>
      <a href="javascript:;" @click="skip('/classify')">分类</a>
      <a href="javascript:;" @click="skip('/order')">订单</a>
      <a href="javascript:;" @click="skip('/my')">我的</a>
    </div>
    <div><h1>显示路由器切换的页面⬇</h1></div>
    <div>
      <router-view></router-view>
    </div>
  </div>
</template>

<script>
export default {
  methods:{
    skip(path) {
      this.$router.push({path})
    }
  }
}
</script>

<style>

</style>